<?php
/**
 * Created by PhpStorm.
 * User: tri
 * Date: 8/15/2014
 * Time: 4:41 PM
 */
session_start();
error_reporting(0);

require_once('../../class_ajax_request/classAjaxAdmin.php');
include_once('../../application/functions.php');
include_once('../../application/DataConfig.php');

if(isset($_POST)){
    $val = $_POST['val'];
    $postId = $_POST['postId'];

    $obj = new AjaxRequestAdmin();
    $obj->updatePostTop($val, $postId);
}